import { Pipe, PipeTransform } from '@angular/core'

@Pipe({
  name: 'splitPhone'
})
export class SplitPhonePipe implements PipeTransform {
  transform(phone: string): any {
    return phone.substring(0, 3) + ' ' + phone.substring(3, 7) + ' ' + phone.substring(7, 11)
  }
}
